var express = require('express');
var router = express.Router();
var user = require("../controllers/user");
/* GET users listing. */
router.route('/register')
    .get(user.register)
    .post(user.doRegister);

router.route('/login')
    .get(user.login)
    .post(user.doLogin);

module.exports = router;
